using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using CMS.BIZ;

namespace CMS.Web.UI.UserControls
{
    public class CultureChooser : UserControl
    {

        protected Repeater repeaterCulture;

        public CultureChooser()
        {
            base.Init += new EventHandler(CultureChooser_Init);
        }

        void CultureChooser_Init(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                BindCulture();
            }
        }

        void BindCulture()
        {
            List<BizCulture> list = Page.BizCultureProvider.ReadAll();
            repeaterCulture.DataSource = list;
            repeaterCulture.DataBind();
        }
    }
}
